package ch.holzi.paperracers.view;

import ch.holzi.paperracers.view.Distance;
import android.graphics.PointF;

public class TrackPoint extends PointF
{
	private Distance distanceToNeighbor;
	public TrackPoint()
	{
		super();
		distanceToNeighbor = new Distance();
	}
	
	public TrackPoint(float x, float y)
	{
		super(x,y);
		distanceToNeighbor = new Distance();
	}
	
	public TrackPoint(float x, float y, Distance d)
	{
		super(x,y);
		distanceToNeighbor = d;
	}
	
	public TrackPoint(TrackPoint p)
	{
		super(p.x, p.y);
		distanceToNeighbor = new Distance(p.getDistance());
	}
	
	public void setDistance(Distance d)
	{
		this.distanceToNeighbor = d;
	}
	
	public Distance getDistance()
	{
		return distanceToNeighbor;
	}
}
